<?php

namespace common\models\member;

use Yii;

/**
 * This is the model class for table "{{%member_data_account}}".
 *
 * @property int $id
 * @property int $member_id 会员ID
 * @property string $type 账户类型
 * @property string $name 支付宝账户名
 * @property string $account_no 账号
 * @property string $bank 开户行
 * @property string $mark
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $status 资料状态
 */
class MemberDataAccount extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%member_data_account}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['member_id', 'created_at', 'updated_at', 'status'], 'integer'],
            [['type'], 'required'],
            [['type', 'name', 'bank'], 'string', 'max' => 64],
            [['account_no'], 'string', 'max' => 32],
            [['mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'member_id' => '会员ID',
            'type' => '账户类型',
            'name' => '支付宝账户名',
            'account_no' => '账号',
            'bank' => '开户行',
            'mark' => 'Mark',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'status' => '资料状态',
        ];
    }

}
